﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace console.demo
{
    public class SelfError : ApplicationException
    {

        public SelfError(string message) : base(message)
        {

        }
    }

    public class Template
    {
        int template = 0;
        public void showTemp()
        {
            if (template == 0)
            {
                throw (new SelfError("zero template fount"));
            }
            else
            {
                Console.WriteLine(template);
            }
        }
    }
}
